package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-14
 * Time: 20:47
 */
public class Cat extends Animal{

    public Cat(String name, int age) {
        super(name, age);
    }

    @Override//方法重写
    public void eat() {
        System.out.println(this.name + "正在吃猫粮");
    }

    @Override
    public Animal sport() {
        System.out.println(this.name + "正在爬墙");
        return null;
    }

}
